﻿using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CRM.Admin.Contracts.Contract.Customer
{
    /// <summary>
    /// 顾客协议
    /// </summary>
     public  interface ICustomerAgreementService: IDependency
    {
        /// <summary>
        /// 顾客协议明细集合
        /// </summary>
        IQueryable<CustomerAgreement> CustomerAgreements { get; }

        /// <summary>
        /// 新增顾客协议
        /// </summary>
        /// <param name="dtos">信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params CustomerAgreementDto[] dtos);

        /// <summary>
        /// 编辑顾客协议明细
        /// </summary>
        /// <param name="dtos">顾客明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params CustomerAgreementDto[] dtos);

        /// <summary>
        /// 删除顾客协议
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
